<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<title>查看bug详情</title>
<script type="text/javascript" src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${path }/resource/js/jquery.query.js"></script>
<script type="text/javascript" src="${path }/resource/js/systools/AjaxProxy.js"></script>
<script type="text/javascript" src="${path }/resource/plugin/layer/layer.js"></script>
<script type="text/javascript" src="${path }/resource/plugin/layer/extend/layer.ext.js"></script>
<script type="text/javascript" src="${path }/resource/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="${path }/resource/plugin/bootstrap-3.3.5/css/bootstrap.min.css"  />
<%-- <script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script> --%>

<!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
   	<![endif]-->
</head>
<body>

<div class="ibox-content" style="margin-left: 15px;margin-top: 10px;">
	<form class="form-horizontal" id="dataform"
		onsubmit="javascripr:return false;">

	</form>
</div>
	
     	
<script type="text/javascript">
	$(function(){
		var bugId = ${param.id};
		if(bugId != ""){
			var html = '';
			$.AjaxProxy({
				p : {
					id : bugId
				}
			}).invoke("${path}/dd/dingding/findBugById", function(loj) {
					console.log(loj);
				 for(var i = 0; i < loj.getRowCount(); i++){
					html += '<div class="form-group"><label class="col-sm-2 control-label">'
						+'标题:&nbsp;&nbsp;&nbsp;&nbsp;'+loj.getString(i,"title")
						+'</label></div>'
						+'<div class="form-group"><label class="col-sm-2 control-label">'
						+'所属模块:&nbsp;&nbsp;&nbsp;&nbsp;'+loj.getString(i,"interfaceName")
						+'</label></div>'
						+'<div class="form-group"><label class="col-sm-2 control-label">'
						+'级别:&nbsp;&nbsp;&nbsp;&nbsp;'+loj.getString(i,"grade")+'级bug'
						+'</label></div>'
						+'<div class="form-group"><label class="col-sm-2 control-label">'
						+'指派给:&nbsp;&nbsp;&nbsp;&nbsp;'+loj.getString(i,"ownerUserName")
						+'</label></div>'
						+'<div class="form-group"><label class="col-sm-2 control-label">'
						+'bug状态:&nbsp;&nbsp;&nbsp;&nbsp;'+loj.getString(i,"status")
						+'</label></div>'
						+'<div class="form-group"><label class="col-sm-2 control-label">'
						+'方案:&nbsp;&nbsp;&nbsp;&nbsp;'+loj.getString(i,"type")
						+'</label></div>';
						
						var describes = loj.getString(i,"describes");
						if(describes!= null && describes!=''){
							html += '<div class="form-group"><label class="col-sm-2 control-label">'
								+'bug描述:&nbsp;&nbsp;&nbsp;&nbsp;'+loj.getString(i,"")
								+'</label></div>';
						}
				} 
				$("#dataform").html(html); 				
			});
		}	
	});
	
	
		
</script>
	
</body>
</html>